package cn.jcby.app.lebu.service;

import cn.jcby.app.lebu.controller.req.*;
import cn.jcby.app.lebu.controller.res.OtherUserInfoRes;
import cn.jcby.app.lebu.controller.res.UserLoginRes;
import cn.jcby.app.lebu.entity.UserEntity;
import cn.jcby.app.lebu.utils.PageUtils;
import cn.jcby.app.lebu.utils.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * 个人信息表
 *
 * @author lht
 * @email 
 * @date 2023-12-07 15:13:35
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(BasicListReq params);

    void add(UserEntity user) ;

    void updateBy(UpdateUserReq req) ;

    Result getVerifyCode(String mobile);

    UserLoginRes login(LoginUserReq req, HttpServletResponse response);

    UserLoginRes infoById();

    Result auth(AuthUserReq req) throws UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException;

    OtherUserInfoRes otherInfoById(String userId);

    void updateLocation(UserLastPointReq req);

    PageUtils nearBy(UserNearByReq req);


    void bindOpenId(String openId);
}

